<?php
header('Content-type:text/html;charset=utf-8');
$con=@mysqli_connect("localhost","root","123456");
if(!$con){
    echo ("链接失败:".mysqli_connect_error());
}
mysqli_set_charset($con,'utf8');

mysqli_select_db($con,'student');

?>